import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import settingRouter from './modules/setting'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/Home.vue'),
    meta: {
      title: '概况'
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/login/Login.vue'),
    meta: {
      title: '登录'
    }
  }
]
routes.push(...settingRouter)

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
